//
//  HMSportTrackingLine.h
//  黑马行
//
//  Created by 宇宙执政 on 16/9/20.
//  Copyright © 2016年 yujianbinMAC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import "HMSportPolyline.h"

@interface HMSportTrackingLine : NSObject

///起始点
@property(nonatomic, strong, readonly)CLLocation *startLocation;

///结束点
@property(nonatomic, strong, readonly)CLLocation *endLocation;

///根据起始点和结束点生成的折线模型
@property(nonatomic, strong, readonly) HMSportPolyline *polyline;

///起始点和结束点之间的平均速度，单位是‘公里/小时’
@property(nonatomic, readonly)double speed;

///起始点和结束点之间的时间差值：单位：秒
@property(nonatomic, readonly)NSTimeInterval time;


///起始点和结束点之间的距离，单位：公里
@property(nonatomic, readonly)double distance;


-(instancetype)initWithStartLocation:(CLLocation *)startLocation endLocation:(CLLocation *)endLocation;

@end
